package com.bifrost.task;

import com.bifrost.task.support.FtpConnectWrapper;
import com.bifrost.util.FTPUtil;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.JobHandler;
import com.xxl.job.core.log.XxlJobLogger;
import org.springframework.stereotype.Component;

import java.io.File;

/**
 * Author by yanxiaobo
 * Date on 2018/5/28$.
 */
@Component
@JobHandler("receiptSendTask")
public class ReceiptSendTask extends BaseSendTask{

    @Override
    public ReturnT<String> execute(String params) throws Exception {
        XxlJobLogger.log("发送"+params+"小票开始");
        transactionService.sendReceipt(new Uploader(params));
        XxlJobLogger.log("发送"+params+"小票完成");
        return ReturnT.SUCCESS;
    }
}
